<extend name="Member:base" />
<block name="title"><title>心心向善-账户信息</title></block>
		<!-- 头部结束-->
<block name="body">

			<!--<主要区块>-->
			<div class="right-layout">
				<div class="wrap">
					<div class="tabmenu">
						<ul class="tab pngFix">
							<li class="normal">
								<a href="/member/zhaq.html">账户安全</a>
							</li>
							<li class="active">
								<a href="/member/xgdlmm.html">修改登录密码</a>
							</li>
						</ul>
					</div>
					<div class="alert alert-success">
						<h4>操作提示：</h4>
						<ul>
							<li>1. 修改登录密码，有助于提高账户安全等级，登录账户需输入登录密码。</li>
						</ul>
					</div>
					<div class="ncm-default-form">
						<form id="email_form" action="xgdlmm" method="post">
							<input type="hidden" name="form_submit" value="ok">
							<dl>
								<dt><i class="required">*</i>输入旧登录密码：</dt>
								<dd>
									<input type="password" class="text w180" maxlength="40" value="" name="member_password" id="member_password">
								</dd>
							</dl>
							<dl>
								<dt><i class="required">*</i>输入新登录密码：</dt>
								<dd>
									<input type="password" class="text w180" maxlength="40" value="" name="member_newpassword" id="member_newpassword">
								</dd>
							</dl>
							<dl>
								<dt><i class="required">*</i>确认新登录密码：</dt>
								<dd>
									<input type="password" class="text w180" maxlength="40" value="" name="member_qrnewpassword" id="member_qrnewpassword">
								</dd>
							</dl>
							<dl class="bottom">
								<dt>&nbsp;</dt>
								<dd><label class="submit-border">
						  <input type="hidden" name="passwordhash" id="passwordhash" value="">
				          <input type="submit" class="submit" value="提交"></label>
								</dd>
							</dl>
						</form>
					</div>
				</div>
			</div>
			<!--</主要区块>-->
			<div class="clear"></div>
		</div>
	<script type="text/javascript">
	$(function(){

		$('input').change(function(){
			$("#passwordhash").val(_getRandomString(32));

		});
		$('select').change(function(){
			$("#passwordhash").val(_getRandomString(32));
		});
	});
	

	// 获取长度为len的随机字符串  
	function _getRandomString(len) {  
		len = len || 32;  
		var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; // 默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1  
		var maxPos = $chars.length;  
		var pwd = '';  
		for (i = 0; i < len; i++) {  
			pwd += $chars.charAt(Math.floor(Math.random() * maxPos));  
		}  
		return pwd;  
	} 
  </script>
	</block>